Returns a character corresponding to an ASCII code.
Chr ( ASCIIcode )
Parameters
ASCIIcode | An ASCII code in the range 0-255 (e.g., 65 returns the capital letter A). |
Return Value
Success: | Returns a string containing the ASCII representation of the given code. |
Failure: | Returns a blank string and sets @error to 1 if the ASCIIcode is greater than 255. |
Remarks
Chr(48) == "0", Chr(57) == "9", Chr(65) == "A", Chr(90) == "Z", Chr(97) == "a", Chr(122) = "z", etc.
Related
Asc, AscW, ChrW, String
Example
$text = ""
For $i = 65 to 90
$text = $text & Chr($i)
Next
MsgBox(0, "Uppercase alphabet", $text)